package com.wl.thread.demo01;

public class TestThread03 implements Runnable{
    @Override
    public void run() {
        for (int i = 0; i < 1000; i++) {
            System.out.println("start开启。。。"+i);
        }
    }

    public static void main(String[] args) {
        //创建runnable接口的实现类对象
        TestThread03 testThread03 = new TestThread03();
        //创建线程对象，通过线程对象来开启线程，代理
        Thread thread = new Thread(testThread03);
        thread.start();
        for (int i = 0; i < 1000; i++) {
            System.out.println("主线程。。。"+i);
        }
    }
}
